package com.design.单例模式;

public class Singleton2 {

	private static Singleton2 uniqueInstance = null;
	
	private Singleton2() {}
	
	public static synchronized Singleton2 getInstance() {
		if(uniqueInstance == null) {
			uniqueInstance = new Singleton2();
		}
		return uniqueInstance;
	}
	
}
